#!/bin/sh
#
# Usage:
#   ./6-cleanup.sh <function name>

strip_all() {
  strip --strip-debug /tools/lib/*
  strip --strip-unneeded /tools/bin/* /tools/sbin/*
}

rm_docs() {
  rm -rf -v \
    /tools/info \
    /tools/man \
    /tools/doc \
    /tools/share/info \
    /tools/share/man \
    /tools/share/doc
}

# TODO:
# - archive the /tools dir?
# - change ownership?
#
# We can't cache them because they depend on host dirs.  We want to
# self-compile until it converges.

"$@"
